package main
import "fmt"
func f1(){
	fmt.Println("开始")
	defer func(){
		fmt.Println("欢迎....")
	}()
	fmt.Println("结束")
}
func f2() int{
	var a int
	defer func(){
        a++
	}()
	// fmt.Println("结束....")
	return a
}
func f3()(a int){
	defer func(){
		a++
	}()
	return a
}
func main(){
   f1()
   fmt.Println("tttt")
   defer fmt.Println("yyyyy")
   defer fmt.Println("xxxxxx")
   defer fmt.Println("QQQQQQQ")
   fmt.Println("你好")
   fmt.Println(f2())
   fmt.Println(f3())
}